<?php 
header("Content-Type:text/html;charset=UTF-8");
include_once '../c/config.php';

$redirect_uri = urlencode('http://mei94.com/dnsj/test/c.php');
$api_userinfo ='https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$appId.'&redirect_uri='.$redirect_uri.'&response_type=code&scope=snsapi_userinfo#wechat_redirect';
header('Location: '.$api_userinfo);

